package Java多线程技术.第2章;

public class Run {

    public static void main(String[] args) throws InterruptedException {
        PrintString printString = new PrintString();
        Thread thread1 = new Thread(printString);
        thread1.start();

        Thread.sleep(1000);

        printString.setContinuePrint(false);
        System.out.println("已经赋值为false");

//        System.out.println("我要停止他 "+Thread.currentThread().getName());
//        printString.setContinuePrint(false);


    }
}
